<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ajax测试二</title>
    <script src="js/jquery.js"></script>
    <script>
        function fun()
        {
            $.get("servletDemo2",{username:"张三"},function (data) {
                alert(data);
            },"text");
        }
    </script>
</head>
<body>
<input type="button" value="发送异步请求" onclick="fun()">
<input>
</body>
</html>